/*
 * @(#)ViewException.java
 *
 * Copyright(c) ALLINPAY 2008-2013 All rights reserved.
 * 
 * Description :  异常信息
 *
 * Modify History:
 *  v1.00, Jun 13, 2013, shijx1  
 *   1) First release
 */
package com.allinpay.merchantweb.common.exception;


/**
 * 异常信息
 * 
 */
public class ViewException extends Exception implements java.io.Serializable {

	private static final long	serialVersionUID	= -8257027130968922079L;

	/**
	 * 错误代码.
	 */
	private String errorCode;

	/**
	 * 错误信息.
	 */
	private String errorMsg;

	/**
	 * 
	 */
	public ViewException() {
		super();
	}

	/**
	 * 自定义errorCode和errorMsg
	 * 
	 * @param errorCode
	 * @param errorMsg
	 * 
	 * @author Angi
	 */
	public ViewException(final String errorCode, final String errorMsg) {
		super(errorMsg);
		this.errorCode = errorCode;
		this.errorMsg = errorMsg;
	}

	public ViewException(final String errorCode, final String errorMsg, Throwable cause) {
		super(errorMsg, cause);
		this.errorCode = errorCode;
		this.errorMsg = errorMsg;
	}

	public ViewException(final String errorCode, final String errorMsg, final String message,Throwable cause) {
		super(message, cause);
		this.errorCode = errorCode;
		this.errorMsg = errorMsg;
	}

	/**
	 * @param message
	 * @param cause
	 */
	public ViewException(final String message, Throwable cause) {
		super(message, cause);
	}

	/**
	 * @param message
	 */
	public ViewException(final String message) {
		super(message);
	}

	/**
	 * @param cause
	 */
	public ViewException(Throwable cause) {
		super(cause);
	}

	/**
	 * @return the errorCode
	 */
	public String getErrorCode() {
		return errorCode;
	}

	/**
	 * @param errorCode
	 *            the errorCode to set
	 */
	public void setErrorCode(String errorCode) {
		this.errorCode = errorCode;
	}

	/**
	 * @return the errorMsg
	 */
	public String getErrorMsg() {
		return errorMsg;
	}

	/**
	 * @param errorMsg
	 *            the errorMsg to set
	 */
	public void setErrorMsg(String errorMsg) {
		this.errorMsg = errorMsg;
	}

	
}

